﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Golf.WebUI.AdminShow.OrderManagement
{
    public partial class OrderDelete : Golf.WebUI.App_code.ValidateLogin
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Golf.BLL.Golf_Order bll = new Golf.BLL.Golf_Order();
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    int Id = (Convert.ToInt32(Request.Params["id"]));
                    bll.Delete(Id);
                    Response.Redirect("list.aspx");
                }
            }
        }
    }
}